<html>
<head>
<script>
window.addEventListener("load", windowLoaded, false);
function windowLoaded() {
	chrome.tabs.getSelected(null, function(tab) {
		var i = document.createElement("img");
        i.src = "http://api.qrserver.com/v1/create-qr-code/?data=" + tab.url + "&size=100x100";
      	document.getElementById("image").appendChild(i);
    });
}
</script>
</head>
<body>
<div id="image"><!-- Here will show qr code --></div>
</body>
</html>
